<?php

/**
 * Site form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class SiteForm extends BaseSiteForm
{
  public function configure()
  {
  	
  	$this->setWidgets(array(
      'id'                      => new sfWidgetFormInputHidden(),
      'name'                    => new sfWidgetFormInput(),
      'proj_path'               => new sfWidgetFormInput(),
      'main_domain'             => new sfWidgetFormInput(),
      'ftp_host'                => new sfWidgetFormInput(),
      'ftp_dir'                 => new sfWidgetFormInput(),
      'ftp_user'                => new sfWidgetFormInput(),
      'ftp_password'            => new sfWidgetFormInput(),
      'photo_path'              => new sfWidgetFormInput(),
      'main_page_id'            => new sfWidgetFormPropelChoice(array('model' => 'Page', 'add_empty' => false)),
      'service_page_id'         => new sfWidgetFormPropelChoice(array('model' => 'Page', 'add_empty' => false)),
      'created_at'              => new sfWidgetFormDateTime(),
      'updated_at'              => new sfWidgetFormDateTime(),
      'domain'                  => new sfWidgetFormInput(),
      'url'                     => new sfWidgetFormInput(),
      'slogan'                  => new sfWidgetFormInput(),
      'email_contact'           => new sfWidgetFormInput(),
      'text_contact'            => new sfWidgetFormTextarea(),
      'text_after_send_contact' => new sfWidgetFormTextarea(),
      'menu_mainpage'           => new sfWidgetFormInput(),
      'menu_service'            => new sfWidgetFormInput(),
      'menu_articles'           => new sfWidgetFormInput(),
      'menu_contact'            => new sfWidgetFormInput(),
      'seo_title'               => new sfWidgetFormInput(),
      'seo_description'         => new sfWidgetFormTextarea(),
      'seo_keywords'            => new sfWidgetFormTextarea(),
      'seo_code_counter'        => new sfWidgetFormTextarea(),
      'fl_new'                  => new sfWidgetFormInputCheckbox(),
      'slogan1'                 => new sfWidgetFormTextarea(),
      'slogan2'                 => new sfWidgetFormTextarea(),
      'description'             => new sfWidgetFormTextarea(),
      'destrib'                 => new sfWidgetFormInput(),
      'items_per_page'          => new sfWidgetFormInput(),
      'mail_hostname'           => new sfWidgetFormInput(),
      'mail_port'               => new sfWidgetFormInput(),
      'mail_username'           => new sfWidgetFormInput(),
      'mail_password'           => new sfWidgetFormInput(),
      'mail_sender_address'     => new sfWidgetFormInput(),
      'mail_sender_name'        => new sfWidgetFormInput(),
      'mail_title'              => new sfWidgetFormInput(),
      'distrib_id'              => new sfWidgetFormPropelChoice(array('model' => 'Distrib', 'add_empty' => false)),
      'cache_time'              => new sfWidgetFormInput(),
      'owner_id'                => new sfWidgetFormPropelChoice(array('model' => 'sfGuardUser', 'add_empty' => false)),
    ));
  	
  	
    
  		
    
    $this->widgetSchema->setLabels(array(  
    'menu_mainpage'    => 'Главная',  
    'menu_service'   => 'Услуги',  
    'menu_articles' => 'Материалы',
    'menu_contact' => 'Контакты',
    ));
  	
  }
}
